// Copyright 2011 Edward Wahlen. All Rights Reserved.

package org.wahlen.pc;

import com.google.common.base.Function;

/**
 * @author edward.wahlen@gmail (Edward Wahlen)
 */
public abstract class MapFn<K, V> extends DoFn<K, V> implements Function<K, V> {

  public void process(K key, EmitFn<V> emitter) {
    emitter.emit(apply(key));
  }
}
